/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 商品卡片样式 */
.product-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.product-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类列表样式 */
.category-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

/* 购物车样式 */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* 订单样式 */
.order-card {
    margin-bottom: 20px;
}

.order-status {
    font-weight: bold;
}

.order-status.pending {
    color: #f39c12;
}

.order-status.paid {
    color: #3498db;
}

.order-status.shipped {
    color: #2ecc71;
}

.order-status.completed {
    color: #27ae60;
}

.order-status.cancelled {
    color: #e74c3c;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .form-container {
        padding: 15px;
    }
}

.empty-cart {
    display: none;
} 